import { useState } from 'react'

const useDrawer = () => {
  const [visible, setVisible] = useState(true)

  const showDrawer = () => setVisible(true)
  const closeDrawer = () => setVisible(false)

  return { visible, showDrawer, closeDrawer }
}

export default useDrawer
